package com.project.hqshorttaxi.service;

import com.project.hqshorttaxi.dto.LoginDto;
import com.project.hqshorttaxi.dto.LoginParam;
import com.project.hqshorttaxi.entity.Login;

import java.util.List;

public interface LoginService {

    Login getByUserId(String userId);

    Login getByToken(String token);

    Login getById(Integer id);

    List<LoginDto> list(LoginParam param);

    void insert(Login entity) throws Exception;

    void update(Login entity) throws Exception;

    List<Login> getByRoleId(Integer roleId);
}
